import template from './template.html';
import './style.less';
import {componentProxy} from '@/components/proxy';

componentProxy('ui-dialog',{
    props: {
        //是否禁用
        visible: {
            type: Boolean,
            default: false
        },


    },
    template,
	data() {
		return {
            show:this.$props.visible
        }
    },
    methods: {
        overlayClicked() {
            this.show=false
            this.$emit('bindclose');
        },
        clicked() {
            this.$emit('tap');
        },
    }
})